import { useLanguage } from "@/hooks/web/useLanguage";

export function useLoginServe() {
  const login = () => {
    console.log("登录");
  };
  return { login };
}

export function useLanguageServe() {
  const { language, toggleLanguage } = useLanguage();
  return { language, toggleLanguage };
}

export function useLoginLanguageServe() {
  const { login } = useLoginServe();
  const { toggleLanguage } = useLanguageServe();
  const toggle = () => {
    // 切换登录状态
    login();
    toggleLanguage();
  };

  return { toggle };
}
